<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Web Tools</title>
<script type="text/javascript">
var request;

function getHTTPObject() 
{
    var xhr = false;
    if (window.XMLHttpRequest) 
    {
        xhr = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        try 
        {
            xhr = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch(e) 
        {
            try 
            {
                xhr = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            catch(e) 
            {
                xhr = false;
            }
        }
    }
    return xhr;
}

function getContent()
{
    request = getHTTPObject();
    request.onreadystatechange = sendData;
    request.open("POST", "test.txt", true);
    request.send(null);
}

function sendData()
{
    var dC = document.getElementById("dCo");
    if(request.readyState == 4)
    {        
        dC.innerHTML = request.responseText;
    }
    else if(request.readyState == 1)
    {
        dC.innerHTML = "<img src='loading.gif' /> Requesting content..."
    }
}
</script>

</head>
<body>


<div id="dCo"></div>
	
	
	
<script type="text/javascript">getContent();</script>

	<?php
	
		for($i=0;$i<50000;$i++)
		echo "is is $i<br>";
	
	?>

</body>
</html>